package com.demo.java.sql.dsl;

import lombok.Data;

/**
 * 基于抽象语法树构建SQL, SQL解析见antlr
 */
public class ASTSqlBuilderTest {
    interface Node {

    }
    @Data
    static class AbstractNode {

    }
    @Data
    static class LeafNode extends AbstractNode {

    }
    @Data
    static class UnaryNode extends AbstractNode {
        private Node child;
    }
    @Data
    static class BinaryNode extends AbstractNode {
        private Node left;
        private Node right;
    }

    public static void main(String[] args) {

    }
}
